package com.yycx.module.bus.client.entity.hy;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import com.yycx.common.mybatis.base.entity.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.yycx.common.mybatis.annotation.TableAlias;

/**
 * 开票明细
 *
 * @author flyme
 * @date 2023-09-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_hyorder_inovice_details")
@TableAlias("bhid")
@ApiModel(value = "BusHyorderInoviceDetails对象", description = "开票明细")
public class BusHyorderInoviceDetails extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "invoiceDetailsId", type = IdType.ASSIGN_ID)
    private Long invoiceDetailsId;

    @ApiModelProperty(value = "结算ID")
    private Long settleApplyId;
    @ApiModelProperty(value = "父ID")
    private Long parentId;

    @ApiModelProperty(value = "订单回款明细ID")
    private Long orderDetailsReturnId;

    @ApiModelProperty(value = "订单明细ID")
    private String orderDetailsId;

    @ApiModelProperty(value = "订单ID")
    private String orderId;

    @ApiModelProperty(value = "账套ID")
    private Long companyId;

    /**
     * 业务员ID
     */
    private Long saleManId;

    @ApiModelProperty(value = "业务员唯一编码")
    private String saleManCode;

    @ApiModelProperty(value = "业务类型")
    private String drugType;

    @ApiModelProperty(value = "部门ID")
    private Long deptId;

    @ApiModelProperty(value = "客户ID")
    private Long customId;

    @ApiModelProperty(value = "开票单位ID")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Long invoiceUnitId;


    @ApiModelProperty(value = "结算发票ID")
    private Long settleFpId;

    @ApiModelProperty(value = "结算金额")
    private BigDecimal settleApplyAmount;

    @ApiModelProperty(value = "结算支付金额")
    private BigDecimal settleAmount;

    @ApiModelProperty(value = "结算日期")
    private Date settleDate;

    @ApiModelProperty(value = "结算类型")
    private Integer settleType;

    @ApiModelProperty(value = "回款金额")
    private BigDecimal returnAmount;

    @ApiModelProperty(value = "回款日期")
    private Date returnDate;

    @ApiModelProperty(value = "开票日期")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Date invoiceDate;

    @ApiModelProperty(value = "支付ID")
    private Long payId;

}
